package sample.bar.controller;

import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2020/7/3
 */
@RestController
public class ApolloController {

	@ApolloConfig
	private Config config;

	@GetMapping("/apollo/config")
	public String getConfig() {
		String v = config.getProperty("hello", null);
		return v;
	}
}
